

import React, { Component } from "react";
import { useModel } from "@/store";
import { WebView } from '@tarojs/components'
export default () => {
  const { curPatientInfo } = useModel("patient");

  // console.log(user, curPatientInfo);

  const { idNo, patientName, homePhone } = curPatientInfo || {};
  const params = [
    `openid=${encodeURIComponent(idNo)}`,
    `sfzh=${encodeURIComponent(idNo)}`,
    `name=${encodeURIComponent(patientName)}`,
    `phone=${homePhone}`
  ].join('&')

  const src = `${HOST}/tj/View1000.htm?${params}#/report`

  return ( 
     <WebView src={src}  />
  );
};
